package mysql

import "gorm.io/gorm"

type Hunt struct {
	gorm.Model
	Name        string  `gorm:"type:varchar(11);not null"`
	Type        string  `gorm:"type:varchar(11);not null"`
	Address     string  `gorm:"type:varchar(11);not null"`
	Salary      float64 `gorm:"type:decimal(10.2);not null"`
	Experience  string  `gorm:"type:varchar(11);not null"`
	Academic    string  `gorm:"type:varchar(11);not null"`
	Description string  `gorm:"type:varchar(11);not null"`
}

func (h *Hunt) CreatedHunt(db *gorm.DB) error {
	return db.Debug().Create(h).Error
}
